#include "unittest.hpp"

namespace sdl_engine::unit_test {

UnitTest unittest;

void UnitTest::RunTests() {
    for (auto& info : testinfos_) {
        if (info.fixture) info.fixture->SetUp();
        if (info.lambda) {
            info.lambda();
        } else {
            info.test->SetUp();
            info.test->Run();
            info.test->TearDown();
        }
        if (info.fixture) info.fixture->TearDown();
    }
} 

}
